import request from '@/utils/request'

export function page({id,goods,storehouse,category,quantity, remark,page,pageSize}) {
    return request({
        url: 'Goods/page',
        method: 'get',
        params: {
            id,
            goods,
            storehouse,
            category, 
            quantity,
            remark,
            page,
            pageSize
        }
    })
}
export function addGoods(goods) {
    return request({
        url: 'Goods/save',
        method: 'post',
        data: goods,
    })
}

export function sel(id){
    return request({
        url:"Goods/"+id,
        method:"get"
    })
}

export function upd(goods){
    return request({
        url:"Goods/upd",
        method:"put",
        data:goods
    })
}
export function getById(id) {
    return request({
        url: 'Goods/'+id,
        method: 'delete',
    })
}


